﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.master" AutoEventWireup="true" CodeBehind="UnManu.aspx.cs" Inherits="UdrinkWater_Project.Admin.UnManu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:DB_Udrink %>" 
        SelectCommand="SELECT DISTINCT TB_Manufacture.Manu_Date, TB_Manufacture.Act_Officer, TB_Employee.Prefix, TB_Employee.Firstname, TB_Employee.Lastname, TB_Manufacture.Status_Manufacture, TB_Status_Manufacture.Status_Manufacture_Name FROM TB_Employee INNER JOIN TB_Manufacture ON TB_Employee.ID_Card = TB_Manufacture.Act_Officer INNER JOIN TB_Status_Manufacture ON TB_Manufacture.Status_Manufacture = TB_Status_Manufacture.Status_Manufactue_ID"></asp:SqlDataSource>
<dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
    HeaderText="รายการผลิตสินค้า(ยังไม่ผลิต)" Width="100%">
    <HeaderStyle Font-Size="Large" />
    <PanelCollection>
        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
            <asp:Panel ID="Panel1" runat="server">
                <table style="width: 100%">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td style="width: 705px">
                            &nbsp;</td>
                        <td align="right">
                            <dx:ASPxButton ID="ASPxButton1" runat="server" OnClick="ASPxButton1_Click" 
                                Text="ยืนยันการผลิต" Visible="False">
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
                KeyFieldName="Manu_Date" OnRowCommand="ASPxGridView1_RowCommand" 
                Width="100%">
                <Columns>
                    <dx:GridViewDataTextColumn Caption="รายการ" FieldName="Number" 
                        ShowInCustomizationForm="True" UnboundType="String" VisibleIndex="0" 
                        Width="80px">
                        <Settings AllowAutoFilter="False" />
                        <DataItemTemplate>
                            <%#Container.ItemIndex +1 %>
                        </DataItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataDateColumn Caption="วันทำรายการ" FieldName="Manu_Date" 
                        ShowInCustomizationForm="True" VisibleIndex="1" Width="300px">
                        <PropertiesDateEdit DisplayFormatString="dd / MM / yyyy HH:mm:ss.fff" 
                            EditFormat="DateTime">
                        </PropertiesDateEdit>
                    </dx:GridViewDataDateColumn>
                    <dx:GridViewDataTextColumn Caption="รหัสพนักงาน" FieldName="Act_Officer" 
                        ShowInCustomizationForm="True" VisibleIndex="1" Width="200px">
                        <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="ชื่อพนักงาน" FieldName="EmpName" 
                        ReadOnly="True" ShowInCustomizationForm="True" VisibleIndex="2" 
                        Width="200px">
                        <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="รายละเอียด" ShowInCustomizationForm="True" 
                        VisibleIndex="6" Width="100px">
                        <DataItemTemplate>
                            <table style="width: 100%">
                                <tr>
                                    <td align="center">
                                        <asp:LinkButton ID="LinkButton1" runat="server" 
                                            CommandArgument='<%#Eval("Manu_Date","{0:yyyy-MM-dd HH:mm:ss.fff}") %>' 
                                            CommandName="Cmd_Select" ToolTip="ดูข้อมูล">รายละเอียด</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </DataItemTemplate>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="สถานะการผลิต" 
                        FieldName="Status_Manufacture_Name" ShowInCustomizationForm="True" 
                        VisibleIndex="3" Visible="False">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="4" 
                        Width="100px" Visible="False">
                        <DataItemTemplate>
                            <dx:ASPxCheckBox ID="ASPxCheckBox1" runat="server">
                            </dx:ASPxCheckBox>
                        </DataItemTemplate>
                    </dx:GridViewDataTextColumn>
                </Columns>
                <SettingsPager PageSize="30">
                </SettingsPager>
                <Settings ShowFilterRow="True" />
            </dx:ASPxGridView>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxRoundPanel>
</asp:Content>
